package com.example.hao.ximalaya.adapter.viewholder;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;


import com.example.hao.ximalaya.pojo.HotData;

import butterknife.ButterKnife;

public abstract class TypeBaseViewHolder extends RecyclerView.ViewHolder {

    protected Context context;

    public TypeBaseViewHolder(Context context, View itemView) {
        super(itemView);
        this.context = context;
        ButterKnife.bind(this, itemView);
        initView();
    }

    public abstract void initView();

    /**
     * 为 ViewHolder 绑定数据
     *
     * @param data 数据对象
     */
    public abstract void setData(HotData.ListBeanX data);

}
